package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap1 extends OSMap
	{
		public function OSMap1()
		{
			super();
			
			//Left start
			var ground:OSGround = new OSGround(-20, 0, 20, 920);
			add(ground);
			
			ground = new OSGround(0, 920, 200, 160, 0, false);
			ground.setNoErosionDown([70, 71, 72, 73, 74, 75, 76, 77, 78, 79]);
			ground.setNoErosionLeft([0, 10, 20, 30, 40, 50, 60, 70]);
			ground.setNoErosionRight([9, 19, 29, 39, 49, 59, 69, 79]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(200, 880, 260, 200, 0, false);
			ground.setNoErosionDown([117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129]);
			ground.setNoErosionLeft([26, 39, 52, 65, 78, 91, 104, 117]);
			ground.setNoErosionRight([12, 25, 38, 51, 64, 77, 90, 103, 116, 129]);
			ground.erode();
			add(ground);
			
			var bouncePillar:OSEntity = new OSEntity(NOTHING, 260, 860); // +30 +20
			bouncePillar.makeGraphic(10, 24, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 380, 860); // +150 + 20
			bouncePillar.makeGraphic(10, 24, 0xff000000);
			addBackground(bouncePillar);
			
			ground = new OSGround(230, 840, 200, 20, 0, true);
			add(ground);
			
			ground = new OSGround(460, 660, 20, 420, 0, false);
			ground.setNoErosionDown([20]);
			ground.setNoErosionLeft([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
			ground.setNoErosionRight([20]);
			ground.erode();
			add(ground);
			
			add(new OSBridge(480, 680, 10, 5, false));
			
			ground = new OSGround(480, 1060, 400, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([19]);
			ground.erode();
			add(ground);
			
			add(new OSCage(580, 996, false));
			
			ground = new OSGround(880, 660, 20, 420, 0, false);
			ground.setNoErosionDown([20]);
			ground.setNoErosionLeft([20]);
			ground.setNoErosionRight([20]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(900, 1060, 60, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([2]);
			ground.erode();
			add(ground);
		}
	}
}
